<?php
namespace functions\attributes\components\Date;

function hourFormat(\SimpleXmlElement &$content, $timing="pre")
{
	if (!isset($content['hourFormat']) || !in_array((int)$content['hourFormat'], array(12, 24)))
	{
		$content['hourFormat'] = 24;
	}

	return true;
}